package com.jvyou.app.ds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jvyou.app.ds.domain.entity.AnswerSession;
import org.apache.ibatis.annotations.Select;

/**
 * (AnswerSesson)表数据库访问层
 *
 * @author 橘柚
 * @since 2025-04-21 20:38:17
 */
public interface AnswerSessionMapper extends BaseMapper<AnswerSession> {

    @Select("select count(*) from ds_answer_record where session_id = #{sessionId}")
    Integer getCurrentNum(Long sessionId);
}
